/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package merlion.common.session.stateless;

import java.util.Collection;
import javax.ejb.Local;
import merlion.common.entity.Announcement;
import merlion.common.entity.Staff;

/**
 *
 * @author Zhang Ying
 */
@Local
public interface AnnouncementSessionLocal {
    
    public void addNewAnnouncement(Announcement a);
    public Collection<Announcement> getAllMyMgedAnnouncements(Long posterId);
    public Announcement getAnnouncement(Long id);
    public boolean deleteAnnouncement(Long id);
    public boolean deleteManyAnnouncements(Announcement[] anns);
    public boolean updateAnnouncement(Announcement a);
    public Staff getPoster(Long posterId);
    public Collection<Announcement> getAllMyAnnouncements(Staff currentStaff);
    public Collection<Announcement> getRecentAtMostFiveAnns(Long accId);
}
